<?php
$this->breadcrumbs=array(
	'Organisations'=>array('index'),
	'Upload adress csv',
);

$this->menu=array(
	array('label'=>'Manage Organisation', 'url'=>array('admin')),
	array('label'=>'Create Organisation', 'url'=>array('create')),
        array('label'=>'Upload from csv','url'=>array('uploadadress'))
);

?>

<h1>Upload Adresses</h1>
<p>
Here you can upload a csv-file containing adresses to be used inside the application - the format is defined as template below.
</p>

<h3>Template</h3>
<hr/>
<table style="border:1px">
    <thead>
        <tr>
            <td><b>ext_id (opt)</b></td>
            <td><b>Salutation (opt)</b></td>
            <td><b>Name</b></td>
            <td><b>PreName (opt)</b></td>
            <td><b>NTName (opt)</b></td>
            <td><b>Contact 1</b></td>
            <td><b>Contact 2</b></td>
            <td><b>Contact 3</b></td>
            <td><b>Contact 4</b></td>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>12345</td>
            <td>Mr</td>
            <td>Frenzel</td>
            <td>Philipp</td>
            <td>beeyeorg\frenzel</td>
            <td>info@beeye.org</td>
            <td>...</td>
            <td>...</td>
            <td>...</td>
        </tr>
    </tbody>
</table>
<hr/>

<div class="form">

    <fieldset class="box">
        <legend>Settings</legend>



        <?php
            $this->widget('ext.xupload.XUploadWidget', array(
                                                    'url' => Yii::app()->createUrl("organisation/upload", array("parent_id" => 1)),
                                'model' => $model,
                                'attribute' => 'file',
            ));
        ?>
        
    </fieldset>



</div><!-- form -->